package pojo;

import java.util.Objects;

public class Classroom {

    private int classId;
    private String className;

    public Classroom() {

    }

    public Classroom(int classId, String className) {
        this.classId = classId;
        this.className = className;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Classroom classroom = (Classroom) o;
        return Objects.equals(classId, classroom.classId) &&
                Objects.equals(className, classroom.className);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classId, className);
    }

    @Override
    public String toString() {
        return "Classroom{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                '}';
    }
}
